home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / misc / tri14dev.lha / Triton / Developer / gcc / source / tr_autorequest.c < prev    next >
C/C++ Source or Header  |  1995-08-25  |  981b  |  30 lines

  1. /*
  2.  *  Triton - The object oriented GUI creation system for the Amiga
  3.  *  Written by Stefan Zeiger in 1993-1994
  4.  *
  5.  *  (c) 1993-1994 by Stefan Zeiger
  6.  *  You are hereby allowed to use this source or parts of it for
  7.  *  creating programs for AmigaOS which use the Triton GUI creation
  8.  *  system. All other rights reserved.
  9.  *
  10.  *  Triton linkable library code for GCC - (c) 1994 by Gunther Nikl
  11.  */
  12.  
  13. #include "triton.h"
  14.  
  15. extern struct Library *TritonBase;
  16.  
  17. ULONG TR_AutoRequest(struct TR_App *app, struct TR_Project *lockproject, struct TagItem *request_trwintags)
  18. {
  19.   register ULONG _res __asm("d0");
  20.   register struct Library *a6 __asm("a6") = TritonBase;
  21.   register struct TR_Project *a0 __asm("a0") = lockproject;
  22.   register struct TR_App *a1 __asm("a1") = app;
  23.   register struct TagItem *a2 __asm("a2") = request_trwintags;
  24.   __asm __volatile ("jsr a6@(-0x54)"
  25.   : "=r" (_res)
  26.   : "r" (a6), "r" (a0), "r" (a1), "r" (a2)
  27.   : "a0","a1","a2","d0","d1", "memory");
  28.   return _res;
  29. }
  30.